package com.cy.dda.model.ao.sms;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

import com.cy.dda.comm.constant.RegexContants;
import com.cy.dda.model.enums.SmsType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 发送短信验证码
 *
 * @author: tanyilin
 * @create: 2018年10月31日 下午4:16:38
 */
@Data
@ApiModel("发送短信验证码")
public class SmsCodeAO {

	@ApiModelProperty(value = "手机号码", required = true)
    @NotEmpty(message = "手机号码不可为空")
	@Pattern(regexp = RegexContants.MOBILE, message = "手机号码格式不正确")
    private String mobile;

    @ApiModelProperty(value = "短信类型", required = true)
    @NotNull(message = "短信类型不可为空")
    private SmsType smsType;
}
